package com.kizuki.jvm;

public class TestJVM {

    // -Xms1024m -Xmx1024m -XX:+PrintGCDetails
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        long initMemory = runtime.totalMemory();
        long maxMemory = runtime.maxMemory();
        System.out.println("maxMemory = " + maxMemory /1024/1024 + "m");
        System.out.println("initMemory = " + initMemory /1024/1024 + "m");
    }


}
